package com.sccba.emtbusiness.domain;

import com.sccba.common.annotation.Excel;
import com.sccba.common.core.domain.BaseEntity;
import com.sccba.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 应急处置操作流程模板对象 yjcz_emergency_process_template
 * 
 * @author lichh
 * @date 2024-04-18
 */
public class YjczEmergencyProcessTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long pkId;

    /** 节点事项 */
    private String nodeContent;

    /** 节点时限要求 */
    private String nodeRequireMaxTime;

    /** 节点顺序 */
    private Long nodeSeq;

    /** 应急场景id（关联yjcz_emergency_scene) */
    private Long nodeSceneId;

    /** 应急场景对象 */
    private YjczEmergencyScene scene;


    @Excel(name = "处置节点联系人id", readConverterExp = "关=联sys_user")
    private Long nodeContactUserId;

    private SysUser nodeContactUser;

    private String nodeRemark;

    private String delFlag;

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public YjczEmergencyScene getScene() {
        return scene;
    }

    public void setScene(YjczEmergencyScene scene) {
        this.scene = scene;
    }

    public Long getNodeContactUserId() {
        return nodeContactUserId;
    }

    public void setNodeContactUserId(Long nodeContactUserId) {
        this.nodeContactUserId = nodeContactUserId;
    }

    public SysUser getNodeContactUser() {
        return nodeContactUser;
    }

    public void setNodeContactUser(SysUser nodeContactUser) {
        this.nodeContactUser = nodeContactUser;
    }

    public String getNodeRemark() {
        return nodeRemark;
    }

    public void setNodeRemark(String nodeRemark) {
        this.nodeRemark = nodeRemark;
    }

    public static YjczEmergencyProcessTemplate getTemplateByProcess (YjczEmergencyHandleProcess process) {
        YjczEmergencyProcessTemplate template = new YjczEmergencyProcessTemplate();
        template.setNodeContent(process.getNodeContent());
        template.setNodeRequireMaxTime(process.getNodeRequireMaxTime());
        template.setNodeSeq(process.getNodeSeq());
        template.setCreateBy(process.getCreateBy());
        template.setCreateTime(process.getCreateTime());
        template.setUpdateBy(process.getUpdateBy());
        template.setUpdateTime(process.getUpdateTime());
        template.setNodeContactUserId(process.getNodeContactUserId());
        template.setNodeRemark(process.getNodeRemark());
        return template;
    }

    public void setPkId(Long pkId) 
    {
        this.pkId = pkId;
    }

    public Long getPkId() 
    {
        return pkId;
    }
    public void setNodeContent(String nodeContent) 
    {
        this.nodeContent = nodeContent;
    }

    public String getNodeContent() 
    {
        return nodeContent;
    }
    public void setNodeRequireMaxTime(String nodeRequireMaxTime) 
    {
        this.nodeRequireMaxTime = nodeRequireMaxTime;
    }

    public String getNodeRequireMaxTime() 
    {
        return nodeRequireMaxTime;
    }
    public void setNodeSeq(Long nodeSeq) 
    {
        this.nodeSeq = nodeSeq;
    }

    public Long getNodeSeq() 
    {
        return nodeSeq;
    }
    public void setNodeSceneId(Long nodeSceneId) 
    {
        this.nodeSceneId = nodeSceneId;
    }

    public Long getNodeSceneId() 
    {
        return nodeSceneId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pkId", getPkId())
            .append("nodeContent", getNodeContent())
            .append("nodeRequireMaxTime", getNodeRequireMaxTime())
            .append("nodeSeq", getNodeSeq())
            .append("nodeSceneId", getNodeSceneId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
